#include<stdio.h>
#include<mysql.h>
#include"SQLPROJ.h"
void selectfunc(void)
{
	MYSQL mysql;
	CONNECT HOST;
	memset(&HOST, 0, sizeof(HOST));
	HOST.port = 3306;
	HOST.host = (char*)malloc(21 * sizeof(char*));
	HOST.host = "127.0.0.1";
	HOST.user = (char*)malloc(21 * sizeof(char*));
	HOST.user = "root";
	HOST.password = (char*)malloc(21 * sizeof(char*));
	HOST.password = "123";
	printf_s("%d,%s,%s,%s\n",  HOST.port,HOST.password,HOST.host,HOST.user);
	mysql_init(&mysql);
	printf_s("%d\n", mysql_errno(&mysql));
	mysql_real_connect(&mysql, HOST.host, HOST.user, HOST.password, NULL, HOST.port, NULL, 0);
	mysql_close(&mysql);

}